.uploadPreviewModal {
    // 重要：确保.modal-content有足够的高度来容纳图片
  :global(.semi-modal-content) {
    display: flex;
    flex-direction: column;
    min-height: 600px; // 根据实际需求调整
  }
  :global(.semi-modal-body) {
    max-height: 540px;
    overflow: auto;
  }

  .mainPreviewContainer {
    width: 100%;
    // height: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    // 为容器设置固定高度，防止图片拉伸
    min-height: 400px; /* 根据实际需求调整高度 */

}
// 添加主预览图片样式
.mainPreviewImage {
  // 只使用最大尺寸限制，保持图片原始比例
    max-width: 730px;
    // max-height: 540px;
    
    // 核心属性：保持图片比例不失真
    object-fit: contain;
    
    // 确保图片不会被压缩
    flex-shrink: 0;
    
    // 可选：设置背景色，当图片比例与容器不匹配时更美观
    background-color: rgba(0, 0, 0, 0.05);
    
    // 可选：添加过渡效果
    transition: all 0.3s ease;
}

  .customFooter {
    // display: flex;
    // flex-direction: row;
    // justify-content: space-between;
    // align-items: center;
    // gap: 20px;

    .customFooterTitle {
      display: flex;
      align-items: center;
      gap: 10px;

      margin-bottom: 20px;
    }

    /* 未选中按钮样式：黑色背景，白色文字，不加粗 */
    .unselectedButton {
      background-color: #191920;
      color: rgba(255, 255, 255, 0.8);
      font-weight: normal;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 选中按钮样式：蓝色背景，蓝色文字 */
    .selectedButton {
      background-color: rgba(50, 109, 255, 0.2);
      color: #326dff;
      font-weight: normal;
      border: 1px solid #326dff;
    }

    /* 确保按钮组的样式正确应用 */
    .customFooterTitle :global(.semi-button-group) .unselectedButton,
    .customFooterTitle :global(.semi-button-group) .selectedButton {
      box-shadow: none;
      width: 84px;
      height: 36px;
      border-radius: 4px;
    }

    .bottomBox {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;

      .imgPreviewWrapper {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;

        .imgPreview {
          width: 60px;
          height: 60px;
          cursor: var(--pointer);
        }

        .selectedImgPreview {
          border: 2px solid #326dff;
        }
      }

      .modalButtonGroup {
        display: flex;
        gap: 10px;
        justify-content: flex-end;

        .button {
          width: 170px;
        }
      }
    }
  }
}
